package main

import (
	grpc2 "google.golang.org/grpc"
	"learning-pass/common/consul"
	"learning-pass/common/grpc"
	"learning-pass/common/models/mysql"
	"learning-pass/common/models/redis"
	"learning-pass/common/models/zap"
	"learning-pass/common/nacos"
	"learning-pass/common/viper"
	"learning-pass/service/internal"
)

func main() {

	viper.GetViper()
	nacos.NewNacos()
	consul.Consul()
	mysql.InitMysql()
	redis.InitRedis()
	grpc.RegisterGrpc(func(server *grpc2.Server) {
		internal.Register(server)

	})
	zap.InitLogger()
	defer zap.Logger.Sync()
	zap.SimpleHttpGet("www.5lmh.com")
	zap.SimpleHttpGet("http://www.google.com")

}
